home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / upc12bs1.zip / UUCICO / uucico.c < prev    next >
C/C++ Source or Header  |  1993-09-29  |  4KB  |  120 lines

  1. /*--------------------------------------------------------------------*/
  2. /*       u u c i c o . c                                              */
  3. /*                                                                    */
  4. /*       UUCICO main program                                          */
  5. /*--------------------------------------------------------------------*/
  6.  
  7. /*--------------------------------------------------------------------*/
  8. /*       Changes Copyright (c) 1989-1993 by Kendra Electronic         */
  9. /*       Wonderworks.                                                 */
  10. /*                                                                    */
  11. /*       All rights reserved except those explicitly granted by       */
  12. /*       the UUPC/extended license agreement.                         */
  13. /*--------------------------------------------------------------------*/
  14.  
  15. /*--------------------------------------------------------------------*/
  16. /*                          RCS Information                           */
  17. /*--------------------------------------------------------------------*/
  18.  
  19. /*
  20.  *    $Id: uucico.c 1.6 1993/09/29 04:52:03 ahd Exp $
  21.  *
  22.  *    Revision history:
  23.  *    $Log: uucico.c $
  24.  * Revision 1.6  1993/09/29  04:52:03  ahd
  25.  * Cosmetic cleanup
  26.  *
  27.  * Revision 1.5  1993/09/20  04:46:34  ahd
  28.  * OS/2 2.x support (BC++ 1.0 support)
  29.  * TCP/IP support from Dave Watt
  30.  * 't' protocol support
  31.  *
  32.  * Revision 1.4  1993/07/31  16:27:49  ahd
  33.  * Changes in support of Robert Denny's Windows support
  34.  *
  35.  *
  36.  * Mon May 15 19:56:44 1989 Add c_break handler                   ahd
  37.  * 20 Sep 1989 Add check for SYSDEBUG in MS-DOS environment       ahd
  38.  * 22 Sep 1989 Delete kermit and password environment
  39.  *             variables (now in password file).                  ahd
  40.  * 30 Apr 1990  Add autoedit support for sending mail              ahd
  41.  *  2 May 1990  Allow set of booleans options via options=         ahd
  42.  * 29 Jul 1990  Change mapping of UNIX to MS-DOS file names        ahd
  43.  * 03 Mar 1992  Replace with new Signal handler for Ctrl C         ahd
  44.  */
  45.  
  46. /*--------------------------------------------------------------------*/
  47. /*                        System include files                        */
  48. /*--------------------------------------------------------------------*/
  49.  
  50. #include <dos.h>
  51. #include <signal.h>
  52. #include <stdio.h>
  53. #include <stdlib.h>
  54. #include <string.h>
  55. #include <time.h>
  56.  
  57. /*--------------------------------------------------------------------*/
  58. /*                    UUPC/extended include files                     */
  59. /*--------------------------------------------------------------------*/
  60.  
  61. #include "lib.h"
  62. #include "dcp.h"
  63. #include "hlib.h"
  64. #include "hostable.h"
  65. #include "security.h"
  66. #include "pushpop.h"
  67. #include "timestmp.h"
  68. #include "catcher.h"
  69.  
  70. currentfile();
  71.  
  72. /*--------------------------------------------------------------------*/
  73. /*    m a i n                                                         */
  74. /*                                                                    */
  75. /*    Main program for UUCICO                                         */
  76. /*--------------------------------------------------------------------*/
  77.  
  78. void main( int argc, char *argv[])
  79. {
  80.    int status;
  81.  
  82.    logfile = stderr;
  83.  
  84. /*--------------------------------------------------------------------*/
  85. /*          Report our version number and date/time compiled          */
  86. /*--------------------------------------------------------------------*/
  87.  
  88.    banner( argv );
  89.  
  90. #if defined(__CORE__)
  91.    copywrong = strdup(copyright);
  92.    checkref(copywrong);
  93. #endif
  94.  
  95.    if (!configure( B_UUCICO ))
  96.       panic();
  97.  
  98. /*--------------------------------------------------------------------*/
  99. /*                        Trap control C exits                        */
  100. /*--------------------------------------------------------------------*/
  101.  
  102.     if( signal( SIGINT, ctrlchandler ) == SIG_ERR )
  103.     {
  104.         printmsg( 0, "Couldn't set SIGINT\n" );
  105.         panic();
  106.     }
  107.  
  108.    PushDir(E_spooldir);
  109.    atexit( PopDir );
  110.  
  111. /*--------------------------------------------------------------------*/
  112. /*                   setup longjmp for error exit's                   */
  113. /*--------------------------------------------------------------------*/
  114.  
  115.    status = dcpmain(argc, argv);
  116.  
  117.    exit( status );
  118.  
  119. } /*main*/
  120.